//ex10_9_6.cpp
#include "BankAccount.h"
#include <new>

BankAccount::BankAccount(std::string client, std::string num, double bal)
{
    name = client;
    accountnum = num;
    balance = bal;
}

void BankAccount::show(void) const
{   using std::cout;
    cout << "The Account information: " << '\n';
    cout << "Name: " << name << '\n';
    cout << "Account: " << accountnum << '\n';
    cout << "Balance: " << balance << '\n';
}

void BankAccount::deposit(double cash)
{
    balance += cash;
}

void BankAccount::withdraw(double cash)
{
    balance -= cash;
}